package com.itheima.thread.Demo3;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        for (int i = 0; i < 10; i++) {
            System.out.println("在一起" + i+"天");
        }
        //返回值就表示线程运行完毕之后的结果
        return "结束了";
    }
}